<!DOCTYPE html>
<html>
<include file="Public:header_home"/>
<!--[if IE 7]>
<body class="ie7 search"><![endif]-->
<!--[if IE 8]>
<body class="ie8 search"><![endif]-->
<!--[if IE 9]>
<body class="ie9 search"><![endif]-->
<!--[if !IE]><!-->
<body class="search"><!--<![endif]-->
<!--head-->
<include file="Public:home_nav"/>

<!--body and data-->

<!-- company-base-->
<div class="company-base">
    <div class="container" style="position:relative;">
        <div class="trigger-edit-wrap" style="top:18px;"><i class="fa fa-pencil" data-show=".company-base-edit"
                                                            data-hide=".company-base-show" id="my_base"></i></div>
        <div class="company-base-show">
            <img src="__PUBLIC__/tpl2/images/default_company.jpg" class="company-avatar-show">
            <div class="company_info">
                <div class="company_main">
                    <h1 class="ellipsis" id="company_name">
                        <a href="" target="_blank" rel="nofollow" title="{$company.company_name}">{$company.company_name}</a>
                    </h1>
                    <a href="" target="_blank" rel="nofollow" class="icon-wrap company-auth"
                       title={$company.company_name}"><i
                            class="fa fa-chain"></i></a> <!-- 已认证 -->
                    <!--<a href="javascript:;" data-toggle="tooltip" data-placement="top" title="" data-original-title="对勾认证企业">-->
                    <!--<i class="fa fa-diamond"></i>-->
                    <!--</a>-->
                    <!--<a href="javascript:;" data-toggle="tooltip" data-placement="top" title="" data-original-title="对勾实地认证">-->
                    <!--<i class="fa fa-location-arrow"></i>-->
                    <!--</a>-->
                    <!--<a href="javascript:;" data-toggle="tooltip" data-placement="top" title="" data-original-title="线上支付认证">-->
                    <!--<i class="fa fa-money"></i>-->
                    <!--</a>-->
                    <div style="clear:both;"></div>

                    <div class="company_intro clear">{$company.intro}</div>
                </div>
                <div class="company_data">
                    <ul>
                        <li>
                            <strong>0个</strong><br>
                                <span class="tipsys" data-toggle="tooltip" data-placement="top"
                                      data-original-title="该公司招聘职位数量">
                                    <a href="http://www.duigoujob.com/jcompany/DCqBX_bn2RLSbgj6_a/1.html"><span>招聘兼职</span>
                                        &nbsp;<i class="fa fa-info-circle"></i></a>
                                </span>
                        </li>
                        <li>
                            <strong>0个</strong><br>
                                <span class="tipsys" data-toggle="tooltip" data-placement="top"
                                      data-original-title="该公司招聘实习数量">
                                    <a href="http://www.duigoujob.com/icompany/DCqBX_bn2RLSbgj6_a/1.html"><span>招聘实习</span>
                                        &nbsp;<i class="fa fa-info-circle"></i></a>
                                </span>
                        </li>

                    </ul>
                </div>
            </div>
        </div>
        <!--edit-->
        <div class="company-base-edit dn">
            <div class="company_logo_edit">
                <img src="" class="company-avatar-edit">
                <div class="common-avatar-shadow"><br>
                    <i class="fa fa-upload"></i><br><br>
                    <span>上传LOGO请小于10M<br>尺寸：170px*170px</span>
                </div>
                <input id="company-avatar-input" name="uppic"
                       onchange="javascript:Common.upload(this, '/Home/Upload/upone', '','', 8,{layer:'#crop-box',target:'#target',input:'#upsrc',cropbox:'#cropbox',preview:'#preview'});"
                       title="支持jpg、jpeg、gif、png、bmp格式，文件小于2M" type="file">
            </div>
            <div class="company_info_edit">
                <form id="baseForm" class="form-horizontal" action="{:U('company/base')}" method="post">
                    <div class="form-group">
                        <div class="col-md-4 col-sm-12">
                            <input
                            <notempty name="company.company_name">disabled="disabled"</notempty>
                            class="form-control dropdown-trigger" value="{$company.company_name}"
                            id="company" name="company_name" placeholder="公司全称" type="text">
                        </div>
                        <div class="col-md-2 hidden-xs input-tips">公司全称仅能修改1次</div>

                        <div class="col-md-4 col-sm-12">
                            <input class="form-control dropdown-trigger" id="company_url" name="site_url"
                                   value="{$company.site_url}" placeholder="公司的网站Url连接" type="text">
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-md-10 col-sm-12">
                            <input class="form-control dropdown-trigger" id="intro" name="intro"
                                   value="{$company.intro}" placeholder="一句话概括公司亮点，不超过80字，如：公司愿景、领导团队等" type="text">
                        </div>
                    </div>
                    <div class="form-group nomgrin">
                        <div class="col-md-10">
                            <button type="submit" class="btn btn-default">保 存</button>
                            &nbsp;&nbsp;&nbsp;
                            <button type="submit" class="btn btn-transparent btn-base-cancel">取 消</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
        <!--edit-->

        <div id="company_navs" class="company_navs">
            <div class="company_navs_wrap">
                <ul data-pjax="">
                    <li class="current"><a href="#">公司主页</a></li>
                    <li><a href="http://www.duigoujob.com/jcompany/DCqBX_bn2RLSbgj6_a/1.html"
                           target="_blank">我发布的兼职（0）</a></li>
                    <li><a href="http://www.duigoujob.com/icompany/DCqBX_bn2RLSbgj6_a/1.html"
                           target="_blank">我发布的实习（0）</a></li>
                    <!--<li><a href="#">招聘职位（0）</a></li>-->
                </ul>

                <!--<div class="company_share">-->
                <!--&lt;!&ndash; <span>分享</span> &ndash;&gt;-->
                <!--<a href="javascript:void(0);" class="share_weibo" rel="nofollow" title="分享到微博"></a>-->
                <!--<a href="javascript:void(0);" class="share_weixin" rel="nofollow" title="分享到微信"></a>-->
                <!--<div class="share_weixin_success dn">-->
                <!--<img alt="移动端公司主页二维码">-->
                <!--</div>-->
                <!--</div>-->
            </div>
        </div>
    </div>
</div>
<!-- company-base end-->

<div class="container">
    <div class="row">
        <div class="company-wrap">
            <div class="col-md-9 col-sm-12 col-xs-12 company-left">
                <div class="company-info">
                    <p class="title">公司简介</p>
                    <div class="module-single-item">
                        <div style="display: none;" class="module-show company-info-show">
                            <div class="trigger-edit-wrap" style="top:18px;"><i class="fa fa-pencil"
                                                                                data-show="#company-info-edit"
                                                                                data-hide=".company-info-show"></i>
                            </div>
                            <div id="intro-more-show" style="width:750px;">
                                {$company.desription}
                            </div>
                        </div>
                        <div style="display: block;" class="module-edit dn" id="company-info-edit">
                            <form class="form-horizontal" method="post" action="/Business/Company/introMore"
                                  id="introMoreForm">
                                <div class="form-group">
                                    <div class="col-md-10 col-sm-12">
                                        <textarea class="form-control" id="introMore" name="introMore" rows="5"
                                                  style="height:178px;">&lt;script&gt;alert("a")&lt;/script&gt;</textarea>
                                    </div>
                                </div>
                                <div class="form-group nomgrin">
                                    <div class="col-md-10">
                                        <button type="submit" class="btn btn-default">保 存</button>
                                        &nbsp;&nbsp;&nbsp;
                                        <button type="submit" class="btn btn-transparent btn-single-cancel">取 消</button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                    <br><br>
                    <p class="title">公司实景</p>
                    <div class="module-multi-item">
                        <div class="col-md-offset-2 wait-add-wrap">
                            <div class="wait-add">添加公司实景</div>
                        </div>
                        <div class="module-show">

                            <ul class="company-env-lists clearfix">
                                <li class="item">
                                    <a href="http://www.duigoujob.com/Uploads/company/82771/env/20160216/56c2b35196340.jpg"
                                       target="_blank"><img src="__PUBLIC__/tpl2/images/56c2b35196340.jpg" width="100%"></a>
                                    <div class=""><a href="javascript:;" class="btn-env-del" data-id="484">删除</a></div>
                                </li>
                                <li class="item">
                                    <a href="http://www.duigoujob.com/Uploads/company/82771/env/20160224/56cd1f9204e3b.jpg"
                                       target="_blank"><img src="__PUBLIC__/tpl2/images/56cd1f9204e3b.jpg" width="100%"></a>
                                    <div class=""><a href="javascript:;" class="btn-env-del" data-id="535">删除</a></div>
                                </li>
                            </ul>
                        </div>
                        <div class="module-edit module-editing dn">
                            <div style="width:350px;margin:0 auto;padding:25px;position:relative;">
                                <img src="__PUBLIC__/tpl2/images/avatar-default.png" class="company-avatar">
                                <div class="common-avatar-shadow" style="left:25px;top:25px;width:300px;height:300px;">
                                    <br><br><br>
                                    <i class="fa fa-upload"></i><br><br><br><br>
                                    <span>上传公司实景照片,请小于2M<br></span>
                                </div>
                                <input id="company-env-input" name="uppic"
                                       style="left:25px;top:25px;width:300px;height:300px;" class="common-input-file"
                                       onchange="javascript:Common.upload(this, '/Home/Upload/upone', '','', 9,{layer:'#crop-box',target:'#target',input:'#upsrc',cropbox:'#cropbox',preview:'#preview'});"
                                       title="支持jpg、jpeg、gif、png、bmp格式，文件小于2M" type="file">
                                <br>
                                <br>
                                <button type="submit" class="btn btn-transparent btn-single-cancel">取 消</button>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="company-product module-multi-item">
                    <p class="title">公司产品</p>
                    <div class="col-md-offset-2 wait-add-wrap multi">
                        <div class="wait-add">添加公司产品</div>
                    </div>
                    <div class="module-show product-show">
                        <div class="product-content pro-188 clearfix" data-id="188">
                            <a href="http://www.duigoujob.com/Uploads/company/82771/product/20160216/56c2b3819dc22.jpg"
                               class="url_valid" target="_blank" rel="nofollow"><img
                                    src="__PUBLIC__/tpl2/images/56c2b3819dc22.jpg"></a>
                            <div class="product-detail">
                                <div class="trigger-edit-wrap multi" style="top:18px;"><i class="fa fa-pencil"
                                                                                          data-show=".product-edit"
                                                                                          data-hide=".product-show"></i>
                                </div>
                                <h4 title="ddsdsd" class="product_url_all">
                                    <div class="fl product_url" title="ddsdsd">
                                        <a href="http://www.dsds.cc/" class="url_valid" target="_blank" rel="nofollow">ddsdsd</a>
                                        <a href="http://www.duigoujob.com/Business/Company/188" class="url_valid"
                                           title="ddsdsd" target="_blank" rel="nofollow"><i class="fa fa-chain"></i></a>
                                    </div>
                                </h4>
                                <ul class="pro-types">
                                    <li>网站</li>
                                    <li>客户端</li>
                                </ul>
                                <p class="product-intro-show">dsdsssssssssssssssssssssssssdsd</p>
                            </div>
                        </div>
                    </div>
                    <div class="module-edit product-edit dn">
                        <div class="col-md-3" style="position:relative;padding:0;">
                            <img src="__PUBLIC__/tpl2/images/avatar-default.png" class="company-product-pic"
                                 style="width:190px;height:190px;">
                            <div class="common-avatar-shadow"><br>
                                <i class="fa fa-upload"></i><br><br>
                                <span>上传LOGO请小于10M<br>尺寸：170px*170px</span>
                            </div>
                            <input id="company-product-input" name="uppic" class="common-input-file"
                                   onchange="javascript:Common.upload(this, '/Home/Upload/upone', '','', 10,{layer:'#crop-box',target:'#target',input:'#upsrc',cropbox:'#cropbox',preview:'#preview'});"
                                   title="支持jpg、jpeg、gif、png、bmp格式，文件小于2M" type="file">
                        </div>
                        <div class="col-md-8" style="padding:0 0 0 20px;">
                            <form id="companyProForm" class="form-horizontal" action="/Business/Company/pro"
                                  method="post">
                                <input class="form-control dropdown-trigger" value="" id="product_pic"
                                       name="product_pic" type="hidden">
                                <input class="form-control dropdown-trigger" value="" id="product_id" name="product_id"
                                       type="hidden">
                                <div class="form-group">
                                    <div class="col-md-10 col-sm-12">
                                        <input class="form-control dropdown-trigger" id="product_name"
                                               name="product_name" placeholder="产品名称" type="text">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-lg-10" id="type_box">
                                        <label><input name="product_type[]" value="1" data-show="网站" type="checkbox"> 网站</label><label><input
                                            name="product_type[]" value="2" data-show="移动app" type="checkbox">
                                        移动app</label><label><input name="product_type[]" value="3" data-show="客户端"
                                                                   type="checkbox"> 客户端</label><label><input
                                            name="product_type[]" value="4" data-show="硬件" type="checkbox">
                                        硬件</label><label><input name="product_type[]" value="5" data-show="其他"
                                                                type="checkbox"> 其他</label></div>
                                </div>
                                <div class="form-group">
                                    <div class="col-md-10 col-sm-12">
                                        <input class="form-control dropdown-trigger" id="product_url" name="product_url"
                                               placeholder="产品连接" type="text">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-md-10 col-sm-12">
                                        <textarea class="form-control" id="product_intro" name="product_intro" rows="5"
                                                  style="height:178px;" placeholder="产品描述"></textarea>
                                    </div>
                                </div>
                                <div class="form-group nomgrin">
                                    <div class="col-md-10">
                                        <button type="submit" class="btn btn-default">保 存</button>
                                        &nbsp;&nbsp;&nbsp;
                                        <button type="submit" class="btn btn-transparent btn-single-cancel">取 消</button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>

            <!-- right bar -->
            <div class="col-md-3 col-sm-12 col-xs-12 company-right">
                <div class="company-prototype module-single-item">
                    <p class="title">基本信息</p>
                    <div style="display: block;" class="module-show prototype-show">
                        <div class="trigger-edit-wrap" style="top:-26px;"><i class="fa fa-pencil"
                                                                             data-show=".prototype-edit"
                                                                             data-hide=".prototype-show"></i></div>
                        <p><i class="fa fa-th"></i> &nbsp;&nbsp;互联网</p>
                        <p><i class="fa fa-line-chart"></i> &nbsp;&nbsp;外资企业</p>
                        <p><i class="fa fa-users"></i> &nbsp;&nbsp;50-100人</p>
                        <p>&nbsp;<i class="fa fa-map-marker"></i> &nbsp;&nbsp;&nbsp;河南省-信阳市</p>
                    </div>
                    <div style="display: none;" class="module-edit prototype-edit dn">
                        <form class="form-horizontal" method="post" action="/Business/Company/prototype"
                              id="prototypeForm">
                            <div class="form-group">
                                <div class="col-md-10 col-sm-12">
                                    <div class="g-dropdown-wrap">
                                        <input class="form-control dropdown-trigger" value="互联网" id="trade_cn"
                                               name="trade_cn" placeholder="所属行业" datatype="/^[\u4E00-\u9FA5]{2,6}$/"
                                               errormsg="请选择行业！" type="text">
                                        <i class="dropdown-fa fa fa-angle-down"></i>
                                        <input name="trade" id="trade" value="1" type="hidden">
                                        <div class="dropdown-lists-box dn" data-val="#trade" data-show="#trade_cn">
                                            <ul class="">
                                                <li data-val="1" data-show="互联网">互联网</li>
                                                <li data-val="2" data-show="电子">电子</li>
                                                <li data-val="3" data-show="餐饮">餐饮</li>
                                                <li data-val="4" data-show="食品">食品</li>
                                                <li data-val="5" data-show="服装">服装</li>
                                                <li data-val="6" data-show="金融">金融</li>
                                                <li data-val="7" data-show="房地产">房地产</li>
                                                <li data-val="8" data-show="通信">通信</li>
                                                <li data-val="9" data-show="汽车">汽车</li>
                                                <li data-val="10" data-show="媒体">媒体</li>
                                                <li data-val="11" data-show="旅游">旅游</li>
                                                <li data-val="12" data-show="家居">家居</li>
                                                <li data-val="13" data-show="医疗">医疗</li>
                                                <li data-val="14" data-show="化妆品">化妆品</li>
                                                <li data-val="15" data-show="娱乐">娱乐</li>
                                                <li data-val="16" data-show="保险">保险</li>
                                                <li data-val="17" data-show="建筑">建筑</li>
                                                <li data-val="18" data-show="交通">交通</li>
                                                <li data-val="19" data-show="物流">物流</li>
                                                <li data-val="20" data-show="航天">航天</li>
                                                <li data-val="21" data-show="印刷">印刷</li>
                                                <li data-val="22" data-show="新能源">新能源</li>
                                                <li data-val="23" data-show="其他">其他</li>
                                            </ul>
                                        </div>
                                        <div class="error-tips"></div>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-md-10 col-sm-12">
                                    <div class="g-dropdown-wrap">
                                        <input class="form-control dropdown-trigger" value="外资企业" id="nature_cn"
                                               name="nature_cn" placeholder="企业性质" datatype="/^[\u4E00-\u9FA5]{2,6}$/"
                                               errormsg="请选择企业性质！" type="text">
                                        <i class="dropdown-fa fa fa-angle-down"></i>
                                        <input name="nature" id="nature" value="2" type="hidden">
                                        <div class="dropdown-lists-box dn" data-val="#nature" data-show="#nature_cn">
                                            <ul class="">
                                                <li data-val="1" data-show="国有企业">国有企业</li>
                                                <li data-val="2" data-show="外资企业">外资企业</li>
                                                <li data-val="3" data-show="合资企业">合资企业</li>
                                                <li data-val="4" data-show="私营企业">私营企业</li>
                                                <li data-val="5" data-show="政府">政府</li>
                                            </ul>
                                        </div>
                                        <div class="error-tips"></div>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-md-10 col-sm-12">
                                    <div class="g-dropdown-wrap">
                                        <input class="form-control dropdown-trigger" value="50-100人" id="size_cn"
                                               name="size_cn" placeholder="企业规模" datatype="/^.{2,30}$/"
                                               errormsg="请选择企业规模！" type="text">
                                        <i class="dropdown-fa fa fa-angle-down"></i>
                                        <input name="size" id="size" value="2" type="hidden">
                                        <div class="dropdown-lists-box dn" data-val="#size" data-show="#size_cn">
                                            <ul class="">
                                                <li data-val="1" data-show="0-20人">0-20人</li>
                                                <li data-val="2" data-show="50-100人">50-100人</li>
                                                <li data-val="3" data-show="100-500人">100-500人</li>
                                                <li data-val="4" data-show="500-2000人">500-2000人</li>
                                                <li data-val="5" data-show="2000人以上">2000人以上</li>
                                            </ul>
                                        </div>
                                        <div class="error-tips"></div>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-md-10 col-sm-12">
                                    <input id="city_cn" value="河南省-信阳市" class="form-control" autocomplete="off"
                                           placeholder="所在城市" aria-describedby="basic-addon1" disabled="disabled"
                                           type="text">
                                </div>
                            </div>
                            <div class="form-group nomgrin">
                                <div class="col-md-offset-2 col-md-10">
                                    <button type="submit" class="btn btn-default">保 存</button>
                                    &nbsp;&nbsp;&nbsp;
                                    <button type="submit" class="btn btn-transparent btn-single-cancel">取 消</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
                <br>
                <div class="company-address module-single-item">
                    <p class="title">公司地址</p>
                    <div class="module-show address-show">
                        <div class="trigger-edit-wrap" style="top:-16px;"><i class="fa fa-pencil"
                                                                             data-show=".address-edit"
                                                                             data-hide=".address-show"></i></div>
                        <p><i class="fa fa-map-marker"></i> 丽江</p>
                    </div>
                    <div style="overflow: hidden; position: relative; z-index: 0; background-color: rgb(243, 241, 236); color: rgb(0, 0, 0); text-align: left;"
                         id="map">
                        <div style="overflow: visible; position: absolute; z-index: 0; left: 0px; top: 0px; cursor: grab;">
                            <div style="position: absolute; left: 0px; top: 0px; z-index: 9; overflow: hidden; width: 210px; height: 200px;"
                                 class="BMap_mask"></div>
                            <div style="position: absolute; height: 0px; width: 0px; left: 0px; top: 0px; z-index: 200;">
                                <div style="position: absolute; height: 0px; width: 0px; left: 0px; top: 0px; z-index: 800;"></div>
                                <div style="position: absolute; height: 0px; width: 0px; left: 0px; top: 0px; z-index: 700;">
                                    <span title="" class="BMap_Marker BMap_noprint" unselectable="on" "=""
                                    style="position: absolute; padding: 0px; margin: 0px; border: 0px none;
                                    -moz-user-select: none; cursor: pointer; background: transparent url(&quot;http://api0.map.bdimg.com/images/blank.gif&quot;)
                                    repeat scroll 0% 0%; width: 19px; height: 25px; left: 167px; top: 162px; z-index:
                                    -6064196;"></span></div>
                                <div style="position: absolute; height: 0px; width: 0px; left: 0px; top: 0px; z-index: 600;"></div>
                                <div style="position: absolute; height: 0px; width: 0px; left: 0px; top: 0px; z-index: 500;">
                                    <label style="position: absolute; -moz-user-select: none; display: none; cursor: inherit; background-color: rgb(190, 190, 190); border: 1px solid rgb(190, 190, 190); padding: 1px; white-space: nowrap; font: 12px arial,simsun,sans-serif; z-index: -20000; color: rgb(190, 190, 190);"
                                           unselectable="on" class="BMapLabel">shadow</label></div>
                                <div style="position: absolute; height: 0px; width: 0px; left: 0px; top: 0px; z-index: 400;">
                                    <span class="BMap_Marker" unselectable="on"
                                          style="position: absolute; padding: 0px; margin: 0px; border: 0px none; width: 0px; height: 0px; -moz-user-select: none; left: 167px; top: 162px; z-index: -6064196;"><div
                                            style="position: absolute; margin: 0px; padding: 0px; width: 19px; height: 25px; overflow: hidden; left: 0px; top: -20px;">
                                        <img src="__PUBLIC__/tpl2/images/marker_red_sprite.png"
                                             style="display: block; border:none;margin-left:0px; margin-top:0px; ">
                                    </div></span></div>
                                <div style="position: absolute; height: 0px; width: 0px; left: 0px; top: 0px; z-index: 300;">
                                    <span unselectable="on"
                                          style="position: absolute; padding: 0px; margin: 0px; border: 0px none; width: 20px; height: 11px; -moz-user-select: none; left: 171px; top: 176px;"><div
                                            style="position: absolute; margin: 0px; padding: 0px; width: 20px; height: 11px; overflow: hidden; left: 15px; top: -15px;">
                                        <img src="__PUBLIC__/tpl2/images/marker_red_sprite.png"
                                             style="display: block; border:none;margin-left:-19px; margin-top:-13px; ">
                                    </div></span></div>
                                <div style="position: absolute; height: 0px; width: 0px; left: 0px; top: 0px; z-index: 201;"></div>
                                <div style="position: absolute; height: 0px; width: 0px; left: 0px; top: 0px; z-index: 200;"></div>
                            </div>
                            <div style="position: absolute; overflow: visible; top: 0px; left: 0px; z-index: 1;">
                                <div style="position: absolute; overflow: visible; z-index: -100; left: 105px; top: 100px; display: block; transform: translate3d(0px, 0px, 0px);">
                                    <img src="__PUBLIC__/tpl2/images/a_002.png"
                                         style="-moz-user-select: none; position: absolute; border: medium none; width: 256px; height: 256px; left: -212px; top: -133px; max-width: none; opacity: 1;"><img
                                        src="__PUBLIC__/tpl2/images/a.png"
                                        style="-moz-user-select: none; position: absolute; border: medium none; width: 256px; height: 256px; left: 44px; top: -133px; max-width: none; opacity: 1;">
                                </div>
                            </div>
                            <div style="position: absolute; overflow: visible; top: 0px; left: 0px; z-index: 2; display: none; visibility: hidden;">
                                <div style="position: absolute; overflow: visible; top: 0px; left: 0px; z-index: 0; display: none;"></div>
                            </div>
                            <div style="position: absolute; overflow: visible; top: 0px; left: 0px; z-index: 3;"></div>
                        </div>
                        <div title="退出全景" style="z-index: 1201; display: none;" class="pano_close"></div>
                        <a title="退出室内景" style="z-index: 1201; display: none;" class="pano_pc_indoor_exit"><span
                                style="float:right;margin-right:12px;">出口</span></a>
                        <div class=" anchorBL"
                             style="height: 32px; position: absolute; z-index: 30; -moz-user-select: none; bottom: 0px; right: auto; top: auto; left: 1px; display: none;">
                            <a style="outline: medium none;" href="http://map.baidu.com/?sr=1" target="_blank"
                               title="到百度地图查看此区域"><img style="border:none;width:77px;height:32px"
                                                       src="__PUBLIC__/tpl2/images/copyright_logo.png"></a></div>
                        <div id="zoomer"
                             style="position: absolute; z-index: 0; top: -8px; left: 3px; overflow: hidden; visibility: hidden; cursor: grab; width: 60px; height: 46px;">
                            <div class="BMap_zoomer" style="top: 0px; left: 0px; background-position: -7px -7px;"></div>
                            <div class="BMap_zoomer" style="top: 0px; right: 0px; background-position: 0px -7px;"></div>
                            <div class="BMap_zoomer"
                                 style="bottom: 0px; left: 0px; background-position: -7px 0px;"></div>
                            <div class="BMap_zoomer"
                                 style="bottom: 0px; right: 0px; background-position: 0px 0px;"></div>
                        </div>
                        <div style="cursor: default; white-space: nowrap; -moz-user-select: none; color: black; background: transparent none repeat scroll 0% 0%; font: 11px/15px arial,simsun,sans-serif; bottom: 2px; right: auto; top: auto; left: 4px; position: absolute; z-index: 10;"
                             class=" BMap_cpyCtrl BMap_noprint anchorBL" unselectable="on"><span
                                style="display: inline;" _cid="1"><span style="font-size:11px">© 2016 Baidu&nbsp;- Data © <a
                                target="_blank" href="http://www.navinfo.com/" style="display:inline;">NavInfo</a> &amp; <a
                                target="_blank" href="http://www.cennavi.com.cn/" style="display:inline;">CenNavi</a> &amp; <a
                                target="_blank" href="http://www.365ditu.com/"
                                style="display:inline;">道道通</a></span></span></div>
                    </div>
                    <div class="module-edit address-edit dn">
                        <form class="form-horizontal" method="post" action="/Business/Company/map" id="mapForm">
                            <div class="form-group">
                                <div class="col-md-12 col-sm-12 map-readme">
                                    <a href="javascript:;" id="map-zoom">放大地图</a>
                                    <div>1.在下方简单输入公司位置粗略定位<br>2.在地图上找到位置[点击]，出现定位<br>3.点击[保存]即可！</div>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-md-10 col-sm-12">
                                    <input id="map_lng" name="map_lng" value="120.357676" type="hidden">
                                    <input id="map_lat" name="map_lat" value="30.320988" type="hidden">
                                    <input class="form-control dropdown-trigger" value="丽江" id="address" name="address"
                                           placeholder="输入公司所在的地点" type="text">
                                    <div class="error-tips"></div>
                                </div>
                            </div>
                            <div class="form-group nomgrin">
                                <div class="col-md-10 col-sm-12">
                                    <button type="submit" class="btn btn-default btn-map">保 存</button>
                                    &nbsp;&nbsp;&nbsp;
                                    <button type="submit" class="btn btn-transparent btn-single-cancel btn-map-cancel">取
                                        消
                                    </button>
                                </div>
                            </div>
                            <br>
                        </form>
                    </div>
                </div>
                <br>
                <div class="company-tags">
                    <p class="title">公司标签</p>
                    <form class="form-horizontal" method="post">
                        <div class="form-group">
                            <div class="col-md-10 col-md-textarea col-sm-12" style="margin-left:20px;">
                                <input id="tags" class="tags tag-editor-hidden-src" autocomplete="off" type="text">
                                <ul class="tag-editor">
                                    <li style="width:1px">&nbsp;</li>
                                    <li class="placeholder">
                                        <div>输入标签并回车</div>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<!--body and data end-->

<!-- footer -->
<!--[if lte IE 7]>
<script type="text/javascript" src="/static/front/js/bsietip.js"></script>
<![endif]-->
<div class="footer">
    <div class="container">

        <div class="row">
            <div class="col-md-4">
                <span class="copyright">© 2015 对勾网・浙ICP备15003879号-1</span>

            </div>
            <div class="col-md-8">
                <!--<div class="socials">-->
                <!--<a class="social" href="" target="_blank" title="Facebook"><span class="social-icon facebook gray"></span></a>-->
                <!--<a class="social" href="" target="_blank" title="微博"><span class="social-icon weibo gray"></span></a>-->
                <!--<span class="social wechat" title="微信"><span class="social-icon gray wechat"></span><div class="wechat-qrcode"><img src="" alt=""></div></span>-->
                <!--</div>-->
                <div class="fa-socials">
                    <div class="social">联系我们：4000-637-627</div>
                    <div class="social"><a href=""><i class="fa fa-weibo"></i></a></div>
                    <div class="social footer-wecaht">
                        <a href=""><i class="fa fa-wechat"></i></a>
                        <div class="wechat-qrcode"><img src="__PUBLIC__/tpl2/images/iduigou.png" alt=""></div>
                    </div>
                </div>
                <ul class="links clearfix">
                    <li><a href="http://www.duigoujob.com/about.html">关于我们</a></li>
                    <li><a href="http://www.duigoujob.com/contact.html">联系我们</a></li>
                    <li><a href="http://www.duigoujob.com/join.html">加入我们</a></li>
                    <li><a target="_blank" key="5608a363efbfb02412482b6b" logo_size="83x30" logo_type="business"
                           href="http://www.anquan.org/authenticate/cert/?site=www.duigoujob.com&amp;at=business">

                        <span style="display:none;" class="LOGO_aq_jsonp_wrap_" id="AQ_logo_span_init_1"><script
                                async="true" type="text/javascript" src="__PUBLIC__/tpl2/images/a"></script></span><img
                            alt="安全联盟认证" style="border: medium none;" src="__PUBLIC__/tpl2/images/hy_83x30.png"
                            height="30"
                            width="83"></a></li>
                    <!--<li><a href="/privacy.html">用户协议</a></li>-->
                    <!--<li class="friends">-->
                    <!--<a href="javascript:;">友情链接</a>-->
                    <!--</li>-->
                    <!--<li class="feedback"><a href="javascript:;">意见反馈</a></li>-->
                </ul>
            </div>
        </div>
    </div>

    <!-- scroll top and feedback -->
    <div class="duigou-feedback-wrap">
        <a style="display: none;" id="backtop" title="回到顶部" rel="nofollow"><i class="fa fa-angle-up"></i></a>
        <a id="qrcode" title="二维码"><i class="fa fa-qrcode"></i></a>
        <a id="feedback" title="联系客服">
            <!--<i class="fa fa-qq"></i>-->
            <img src="__PUBLIC__/tpl2/images/counseling_style_51.png">
        </a>
        <div class="feedback_box">
            <a title="服务学生客服"
               href="http://wpa.b.qq.com/cgi/wpa.php?ln=1&amp;key=XzgwMDA1MDQyMl8zNDY5NDdfODAwMDUwNDIyXzJf"
               target="_blank"><i class="fa fa-qq" style="color:#00bcd4"></i> 学生客服</a>
            <a title="服务企业客服"
               href="http://wpa.b.qq.com/cgi/wpa.php?ln=1&amp;key=XzgwMDA1MDQyMl8zNDY5NDhfODAwMDUwNDIyXzJf"
               target="_blank"><i class="fa fa-qq" style="color:#FEAD00"></i> 企业客服</a>
        </div>
    </div>
    <!-- scroll top and feedback -->

</div>
<script type="text/javascript">
    $(function () {
        $('.layui-layer-shade').click(function () {
            clearInterval(clearBindWechat);
        });
        $('#feedback').click(function () {
            $('.feedback_box').toggle();
        });
        $('#qrcode').on('click', function () {
            Common.popup({
                title: false,
                closeBtn: 0,
                area: ['300px', '300px'],
                skin: 'layui-layer-nobg',
                shadeClose: true,
                content: '<img src="/static/front/images/iduigou.png" alt="">'
            }, 3);
        });
    })
</script>

<!-- footer end-->

<!--放大地图-->
<!--放大地图-->

<!--裁剪头像部分-->
<div id="crop-box" style="width:650px;display:none;background:#fff;padding:10px;">
    <div style="text-align: center;font-size:24px;margin-bottom:8px;">图片裁剪保存</div>
    <div class="clearfix" style="width:560px;margin:0 auto;">
        <div id="cropbox" class="pull-left"
             style="position:relative;padding:20px;width:240px;height:240px;background: #fafafa;">
            <img data-src="" id="target">
            <div class="tip" style="position:absolute;display:none;top:110px;font-size:20px;text-align: center;">
                图片加载中.请稍后!
            </div>
        </div>
        <div id="headpreview" class="pull-right">
            预览：<br><br>
            <div id="preview-pane" style="padding:20px;width:190px;height:190px;background: #fafafa;">
                <div class="preview-container" style="overflow:hidden;width:150px;height:150px;">
                    <img src="" id="preview" class="jcrop-preview">
                </div>
            </div>
        </div>
        <div style="clear:both;"></div>
        <br><br>
        <button class="fr btn btn-success btn-radius btn-save" style="width:200px;">保存</button>
    </div>
    <form id="cropform" class="coords" onsubmit="return false;">
        <input value="0" id="x1" name="x1" type="hidden">
        <input value="0" id="y1" name="y1" type="hidden">
        <input value="1720.5600000000002" id="x2" name="x2" type="hidden">
        <input value="1720.56" id="y2" name="y2" type="hidden">
        <input value="1720.5600000000002" id="w" name="w" type="hidden">
        <input value="1720.56" id="h" name="h" type="hidden">
        <input id="uptype" name="type" value="9" type="hidden">
        <input id="img" name="pic" value="" type="hidden">
    </form>
</div>

<div id="r-result"></div>

<script>

    var map = null;
    var top_left_control = null;
    var top_left_navigation = null;
    var top_right_navigation = null;

    //百度地图API功能
    function loadJScript() {
        var script = document.createElement("script");
        script.type = "text/javascript";
        script.src = "http://api.map.baidu.com/api?v=2.0&ak=Gdb5j6lm1bNcOHPzMeKCgcO2&callback=init";
        document.body.appendChild(script);
    }

    function init() {
        map = new BMap.Map("map");            // 创建Map实例
        var point = new BMap.Point("120.357674", "30.320988"); // 创建点坐标
        map.centerAndZoom(point, 17);
        map.enableScrollWheelZoom();              //启用滚轮放大缩小

        /*缩放控件type有四种类型: BMAP_NAVIGATION_CONTROL_SMALL：仅包含平移和缩放按钮；BMAP_NAVIGATION_CONTROL_PAN:仅包含平移按钮；BMAP_NAVIGATION_CONTROL_ZOOM：仅包含缩放按钮*/
        top_left_control = new BMap.ScaleControl({anchor: BMAP_ANCHOR_TOP_LEFT});// 左上角，添加比例尺
        top_left_navigation = new BMap.NavigationControl();  //左上角，添加默认缩放平移控件
//        top_right_navigation = new BMap.NavigationControl({anchor: BMAP_ANCHOR_TOP_RIGHT, type: BMAP_NAVIGATION_CONTROL_SMALL}); //右上角，仅包含平移和缩放按钮

        var marker = new BMap.Marker(point);  // 创建标注
        map.addOverlay(marker);               // 将标注添加到地图中
        marker.setAnimation(BMAP_ANIMATION_BOUNCE); //跳动的动画

        //注册map鼠标事件 获取point
        map.addEventListener("click", function (e) {
            map.clearOverlays();
            var point = new BMap.Point(e.point.lng, e.point.lat); // 创建点坐标
            var marker = new BMap.Marker(point);  // 创建标注
            map.addOverlay(marker);               // 将标注添加到地图中
            marker.setAnimation(BMAP_ANIMATION_BOUNCE); //跳动的动画
            map.centerAndZoom(point, 17);
            $('#map_lng').val(e.point.lng);
            $('#map_lat').val(e.point.lat);
        });
    }

    function setCenter() {
        var point = new BMap.Point($('#map_lng').val(), $('#map_lat').val()); // 创建点坐标
        map.centerAndZoom(point, 17);
    }

    function add_control() {
        map.addControl(top_left_control);
        map.addControl(top_left_navigation);
    }
    //移除控件和比例尺
    function delete_control() {
        map.removeControl(top_left_control);
        map.removeControl(top_left_navigation);
    }

    function addClickHandler(content, marker) {
        marker.addEventListener("click", function (e) {
            $('#address').val(content);
            var point = new BMap.Point(e.point.lng, e.point.lat); // 创建点坐标
            map.centerAndZoom(point, 17);
            $('#map_lng').val(e.point.lng);
            $('#map_lat').val(e.point.lat);
        });
    }

    function search(input) {
        var options = {
            onSearchComplete: function (results) {
                // 判断状态是否正确
                if (local.getStatus() == BMAP_STATUS_SUCCESS) {
                    var s = [];
                    for (var i = 0; i < results.getCurrentNumPois(); i++) {
                        s.push(results.getPoi(i).title + ", " + results.getPoi(i).address);
                        var marker = new BMap.Marker(new BMap.Point(results.getPoi(i).point.lng, results.getPoi(i).point.lat));
                        var content = results.getPoi(i).address;
                        map.addOverlay(marker);               // 将标注添加到地图中
                        addClickHandler(content, marker);
                    }
                    if (results.getCurrentNumPois() > 1) {
                        map.centerAndZoom(new BMap.Point(results.getPoi(results.getCurrentNumPois() - 1).point.lng, results.getPoi(results.getCurrentNumPois() - 1).point.lat), 17);
                    }
//                    document.getElementById("r-result").innerHTML = s.join("<br/>");
                }
            }
        };
        var local = new BMap.LocalSearch(map, options);
        local.search(!!input ? input : "艾肯金座");
    }

    $(function () {

        loadJScript(); //异步加载地图

        $('#address').on('keydown', function () {
            search($(this).val());
        });

        $('.btn-map-cancel').on('click', function (e) {
            $('#map').css({height: '200px', width: '210px', padding: 0, margin: '20px'});
            $('#map').html('');
            $('.company-address').css({backgroundColor: 'transparent'}).show();
            $('.company-address').find('.title').show();
            $('.company-address').find('.map-readme div').html('1.在下方简单输入公司位置粗略定位<br />2.在地图上找到位置[点击]，出现定位<br />3.点击[保存]即可！');
            init();
            layer.closeAll();
            e.preventDefault();
        });

        $('#mapForm').Validform({
            ajaxPost: true,
            callback: function (result) {
                //自动更新页面上匹配的显示
                if (result.status) {
                    layer.closeAll();
                    setCenter();
                    $('.address-show p').html('<i class="fa fa-map-marker"></i> ' + $('#address').val());
                    $('.company-address').find('.module-show').show();
                    $('.company-address').find('.module-edit').hide();
                } else {
                    alert(result.data);
                }
            },
            tiptype: function (msg, o, cssctl) {
                if (o.type === 2) {
                    //验证成功
                    $(o.obj).parent().find('.error-tips').removeClass('error').text('');

                }
                if (o.type === 3) {
                    //验证失败
                    $(o.obj).parent().find('.error-tips').addClass('error').text(msg);

                }
            }
        });

        $('.company-address').on('click', '#map-zoom', function () {
            var that = $(this);
            that.closest('.company-address').find('.title').hide();
            that.closest('.company-address').find('.address-edit').css({width: '620px'});
            that.closest('.company-address').find('.map-readme div').html('1.在下方简单输入公司位置粗略定位 &nbsp; &nbsp;2.在地图上找到位置[点击]，出现定位 &nbsp; &nbsp;3.点击[保存]即可！');
            $('#map').css({height: '350px', width: '650px', margin: 0});
            $('#map').html('');
            $('.company-address').css({backgroundColor: '#fff'});
            that.hide();
            init();
            Common.popup({
                title: false,
                closeBtn: 0,
                area: ['650px', '510px'],
                skin: 'layui-layer-nobg',
                shadeClose: true,
                scrollbar: false,
                content: $('.company-address'),
                end: function () {
                    delete_control();
                    $('#map').css({height: '200px', width: '210px', padding: 0, margin: '20px'});
                    $('.company-address').css({backgroundColor: 'transparent'}).show();
                    that.closest('.company-address').find('.address-edit').css({width: '100%'});
                    that.show();
                    that.closest('.company-address').find('.title').show();
                    that.closest('.company-address').find('.map-readme div').html('1.在下方简单输入公司位置粗略定位<br />2.在地图上找到位置[点击]，出现定位<br />3.点击[保存]即可！');
                }
            }, 3);
        });

        //裁剪并保存
        $('.btn-save').on('click', function () {
            var data = $('#cropform').serializeArray();
            $.post('/Home/Upload/crop', data, function (result) {
                var uptype = parseInt($('#uptype').val());
                if (result.status) {
                    layer.closeAll();
                    if (uptype === 8) {
                        $('.company-avatar-show').attr('src', result.pic);
                        $('.company-avatar-edit').attr('src', result.pic);
                    } else if (uptype === 9) {
                        var itemHTML = '<li class="item"><img src="' + result.pic + '" width="100%"> <div class=""><a href="javascript:;" class="btn-env-del" data-id="' + result.id + '">删除</a></div> </li>';
                        $('.company-env-lists').append(itemHTML);
                        $('.company-env-lists').closest('.module-multi-item').find('.module-show').show();
                        $('.company-env-lists').closest('.module-multi-item').find('.module-edit').hide();
                    } else if (uptype === 10) {
                        $('.company-product-pic').prop('src', result.pic);
                        $('#product_pic').val(result.pic);
                    } else {
                        alert(uptype);
                    }
                }
            });
        });

        $('.company-env-lists').on('click', '.btn-env-del', function (e) {
            var that = $(this);
            if (confirm("是否确定删除？")) {
                $.post('/Business/Company/envDel', {id: that.data('id')}, function (data) {
                    if (data.status) {
                        that.closest('.item').remove();
                    } else {
                        alert(data.data);
                    }
                });

            }
        });

        $('.btn-base-cancel').on('click', function (e) {
            alert('xxx');
            $('.company-base-edit').hide();
            $('.company-base-show').show();
            e.preventDefault();
        });

        $('#baseForm').Validform({
            ajaxPost: true,
            callback: function (result) {
                //自动更新页面上匹配的显示
                if (result.status) {
                    $('#company_name').html('<a href="' + $('#company_url').val() + '" target="_blank" rel="nofollow" title="' + $('#company').val() + '">' + $('#company').val() + '</a>');
                    $('.company_intro').html($('#intro').val());
                    $('.company-base-edit').hide();
                    $('.company-base-show').show();
                } else {
                    alert(result.data);
                }
            },
            tiptype: function (msg, o, cssctl) {
                if (o.type === 2) {
                    //验证成功
                    $(o.obj).parent().find('.error-tips').removeClass('error').text('');

                }
                if (o.type === 3) {
                    //验证失败
                    $(o.obj).parent().find('.error-tips').addClass('error').text(msg);

                }
            }
        });

        $('#introMoreForm').Validform({
            ajaxPost: true,
            callback: function (result) {
                //自动更新页面上匹配的显示
                if (result.status) {
                    $('#intro-more-show').html(Common.nl2br($('#introMore').val()));
                    $('#company-info-edit').hide();
                    $('.company-info-show').show();
                } else {
                    alert(result.data);
                }
            },
            tiptype: function (msg, o, cssctl) {
                if (o.type === 2) {
                    //验证成功
                    $(o.obj).parent().find('.error-tips').removeClass('error').text('');

                }
                if (o.type === 3) {
                    //验证失败
                    $(o.obj).parent().find('.error-tips').addClass('error').text(msg);

                }
            }
        });

        $('#prototypeForm').Validform({
            ajaxPost: true,
            callback: function (result) {
                //自动更新页面上匹配的显示
                if (result.status) {
                    $('.prototype-show p').eq(0).html('<i class="fa fa-th"></i> &nbsp;&nbsp;' + $('#trade_cn').val());
                    $('.prototype-show p').eq(1).html('<i class="fa fa-line-chart"></i> &nbsp;&nbsp;' + $('#nature_cn').val());
                    $('.prototype-show p').eq(2).html('<i class="fa fa-users"></i> &nbsp;&nbsp;' + $('#size_cn').val());
                    if ($('#city_cn').size() == 1) {
                        $('.prototype-show p').eq(3).html('&nbsp;<i class="fa fa-map-marker"></i> &nbsp;&nbsp;&nbsp;' + $('#city_cn').val());
                    } else {
                        $('.prototype-show p').eq(3).html('&nbsp;<i class="fa fa-map-marker"></i> &nbsp;&nbsp;&nbsp;' + $('#city option:selected').text());
                    }
                    $('.prototype-show').closest('.module-single-item').find('.module-show').show();
                    $('.prototype-show').closest('.module-single-item').find('.module-edit').hide();
                } else {
                    alert(result.data);
                }
            },
            tiptype: function (msg, o, cssctl) {
                if (o.type === 2) {
                    //验证成功
                    $(o.obj).parent().find('.error-tips').removeClass('error').text('');

                }
                if (o.type === 3) {
                    //验证失败
                    $(o.obj).parent().find('.error-tips').addClass('error').text(msg);

                }
            }
        });

        $('#companyProForm').Validform({
            ajaxPost: true,
            callback: function (result) {
                //自动更新页面上匹配的显示
                if (result.status) {
                    if (!!result.newid) {
                        //添加成功
                        var proHtml = '<div class="product-content pro-' + result.newid + ' clearfix" data-id="' + result.newid + '">' +
                                '<a href="' + $('.company-product-pic').attr('src') + '" class="url_valid" target="_blank" rel="nofollow"><img src="' + $('.company-product-pic').attr('src') + '"></a>' +
                                '<div class="product-detail">' +
                                '<div class="trigger-edit-wrap multi" style="top:18px;"><i class="fa fa-pencil" data-show=".product-edit" data-hide=".product-show"></i></div>' +
                                '<h4 title="' + $('#product_name').val() + '" class="product_url_all">' +
                                '<div class="fl product_url" title="' + $('#product_name').val() + '">' +
                                '<a href="' + $('#product_url').val() + '" class="url_valid" target="_blank" rel="nofollow">' + $('#product_name').val() + '</a>' +
                                '<a href="' + result.newid + '" class="url_valid" title="' + $('#product_name').val() + '" target="_blank" rel="nofollow"><i class="fa fa-chain"></i></a>' +
                                '</div>' +
                                '</h4>' +
                                '<ul class="pro-types">' +

                                '</ul>' +
                                '<p class="product-intro-show">' + $('#product_intro').val() + '</p>' +
                                '</div>' +
                                '</div>';

                        $('.product-show').prepend(proHtml);
                    }
                    if (!!result.id) {
                        //修改成功
                        var currentItem = $('.pro-' + parseInt(result.id));
                        currentItem.find('img').attr('src', $('.company-product-pic').attr('src'));
                        currentItem.find('.product_url_all h4').attr('title', $('#product_url').val());
                        currentItem.find('.product_url').attr('title', $('#product_url').val()).find('.url_valid').attr('title', $('#product_url').val());
                        currentItem.find('.product_url').find('.url_valid').eq(0).text($('#product_name').val());
                        currentItem.find('.product-intro-show').html($('#product_intro').val());
                        //遍历type
                        var showboxs = currentItem.find('.pro-types');
                        showboxs.html('');
                        var checkboxs = $('#companyProForm').find('input[type="checkbox"]');
                        checkboxs.each(function (i, v) {
                            if ($(v).prop('checked')) {
                                showboxs.append('<li>' + $(v).data('show') + '</li>');
                            }
                        });


                    }
                    $('.product-edit').hide();
                    $('.product-show').show();
                } else {
                    alert(result.data);
                }
            },
            tiptype: function (msg, o, cssctl) {
                if (o.type === 2) {
                    //验证成功
                    $(o.obj).parent().find('.error-tips').removeClass('error').text('');

                }
                if (o.type === 3) {
                    //验证失败
                    $(o.obj).parent().find('.error-tips').addClass('error').text(msg);

                }
            }
        });

        //一个添加项目的通用取消
        $('.btn-single-cancel').on('click', function (e) {
            var that = $(this);
            that.parents('.module-single-item,.module-multi-item').find('.module-show').show();
            that.parents('.module-single-item,.module-multi-item').find('.module-edit').hide();
            if (that.parents('.module-single-item,.module-multi-item').find('.wait-add-wrap').size() > 1) {
                that.parents('.module-single-item,.module-multi-item').find('.wait-add-wrap').show();
            }
            e.preventDefault();
        });

        //
        $('.trigger-edit-wrap').on('click', function () {
            var that = $(this);
            $(that.find('i').data('show')).toggle();
            $(that.find('i').data('hide')).toggle();
            if (that.hasClass('multi')) {
                //pro edit or add
                $.post('/Business/Company/getProOne', {id: that.closest('.product-content').data('id')}, function (result) {
                    if (result.status) {
                        $('.company-product-pic').attr('src', result.data.pic);
                        $('#companyProForm').find('#product_pic').val(result.data.pic);
                        $('#companyProForm').find('#product_name').val(result.data.name);
                        $('#companyProForm').find('#product_url').val(result.data.url);
                        $('#companyProForm').find('#product_intro').val(result.data.intro);
                        if ($('#companyProForm').find('#product_id').size() == 0) {
                            $('#companyProForm').prepend('<input type="hidden" class="form-control dropdown-trigger" value="' + result.data.id + '" id="product_id" name="product_id">');
                        } else {
                            $('#companyProForm').find('#product_id').val(result.data.id);
                        }
                        //产品类型判定
                        var checkboxs = $('#companyProForm').find('input[type="checkbox"]');
                        if (result.data.type != '') {
                            var waitboxs = result.data.type.split(',');
                            checkboxs.each(function (i, v) {
                                for (var x in waitboxs) {
                                    if ($(v).val() == waitboxs[x]) {
                                        $(v).prop('checked', true);
                                    }
                                }
                            });
                        }

                    } else {
                        alert(result.data);
                    }
                });
            }
        });

        // 多选项添加
        $('.wait-add-wrap').on('click', function () {
            var that = $(this);
            that.closest('.module-multi-item').find('.module-show').hide();
            that.closest('.module-multi-item').find('.module-edit').show();
            if (that.hasClass('multi')) {
                //清空pro编辑内容
                $('.company-product-pic').prop('src', '/static/front/images/resume/avatar-default.png');
                $('#companyProForm').find('input[type="text"]').val('');
                $('#companyProForm').find('input[type="checkbox"]').prop('checked', false);
                $('#companyProForm').find('#product_id').remove();
            }
        });

        //公司标签
        $('#tags').tagEditor({
            initialTags: [],
            placeholder: '输入标签并回车',
            beforeTagSave: function (field, editor, tags, tag, val) {
                $.post('/Business/Company/addTag', {tag: val}, function (result) {
                    if (result.status != 1) {
                        $('#tags').tagEditor('removeTag', val);
                    }
                });
            },
            beforeTagDelete: function (field, editor, tags, val) {
                $.post('/Business/Company/removeTag', {tag: val}, function (result) {
                });
            }
        });


        //城市
        $('#province').on('change', function () {
            var index = this.selectedIndex;
            $('#city').get(0).options.length = 0;
            $('#city').append('<option value="0">请选择城市</option>');
            $('.area-wrap').hide();
            $.post('/Home/AjaxAny/ajaxcity', {parentid: this.options[index].value}, function (data) {
                if (data.status) {
                    $.each(data.data, function (i, v) {
                        $('#city').append('<option value="' + v.id + '">' + v.name + '</option>');
                    });
                } else {
                    alert('获取数据错误, 请刷新看看!')
                }
            })

        });

    });
</script>


</body>
</html>